﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>位运算符</title>
</head>
<body>
    <script language="JavaScript" type="text/javaScript">
        document.write("按位与41&23结果：" + (41 & 23) + "<br>");
        document.write("按位或41|23结果：" + (41 | 23) + "<br>");
        document.write("按位异或41^23结果：" + (41 ^ 23) + "<br>");
        document.write("按位非~41结果：" + (~41));
    </script>
</body>
</html>